<?php

namespace Home\Controller;

use Think\Controller;
use Think\Crypt;

class PlayController extends Controller {

    public function index() {
        session('[start]');
        $data['username'] = $_SESSION['userinfo']['username'];
        $data['gamename'] = $_COOKIE['gamename'];
        $data['areaname'] = $_COOKIE['areaname'];
        $data['game_id'] = $_COOKIE['game_id'];
        $data['main_site'] = $_COOKIE['main_site'];
        $data['url'] = $_COOKIE['url'];
        $this->assign('data', $data);
        $this->display();
    }

    public function shortcut() {
        $Shortcut = "[InternetShortcut]
            URL=http://wssb.678fu.com/
            IDList=
            [{000214A0-0000-0000-C000-000000000046}]
            Prop3=19,2
            ";
        Header("Content-type: application/octet-stream; charset=utf-8");
        header("Content-Disposition: attachment; filename=无上神兵.url;");
        echo $Shortcut;
    }

}
